package com.freewater.cargotracker.infrastructure.persistence.mybatis.mapper;

import com.freewater.cargotracker.infrastructure.persistence.mybatis.dbobject.LocationPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface LocationMapper {

    int insert(LocationPO locationPO);

    int insertAll(List<LocationPO> locationPOs);

    LocationPO find(@Param("unLocode") String unLocode);

    List<LocationPO> findAll();

    List<LocationPO> findByIds(Set<Long> ids);

    int deleteAll();
}
